package com.ruoyi.compensationManagement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.compensationManagement.mapper.CompensationSalaryProjectManagementMapper;
import com.ruoyi.compensationManagement.domain.CompensationSalaryProjectManagement;
import com.ruoyi.compensationManagement.service.ICompensationSalaryProjectManagementService;

/**
 * 薪资项目管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-10-09
 */
@Service
public class CompensationSalaryProjectManagementServiceImpl implements ICompensationSalaryProjectManagementService 
{
    @Autowired
    private CompensationSalaryProjectManagementMapper compensationSalaryProjectManagementMapper;

    /**
     * 查询薪资项目管理
     * 
     * @param id 薪资项目管理主键
     * @return 薪资项目管理
     */
    @Override
    public CompensationSalaryProjectManagement selectCompensationSalaryProjectManagementById(Long id)
    {
        return compensationSalaryProjectManagementMapper.selectCompensationSalaryProjectManagementById(id);
    }

    /**
     * 查询薪资项目管理列表
     * 
     * @param compensationSalaryProjectManagement 薪资项目管理
     * @return 薪资项目管理
     */
    @Override
    public List<CompensationSalaryProjectManagement> selectCompensationSalaryProjectManagementList(CompensationSalaryProjectManagement compensationSalaryProjectManagement)
    {
        return compensationSalaryProjectManagementMapper.selectCompensationSalaryProjectManagementList(compensationSalaryProjectManagement);
    }

    /**
     * 新增薪资项目管理
     * 
     * @param compensationSalaryProjectManagement 薪资项目管理
     * @return 结果
     */
    @Override
    public int insertCompensationSalaryProjectManagement(CompensationSalaryProjectManagement compensationSalaryProjectManagement)
    {
        return compensationSalaryProjectManagementMapper.insertCompensationSalaryProjectManagement(compensationSalaryProjectManagement);
    }

    /**
     * 修改薪资项目管理
     * 
     * @param compensationSalaryProjectManagement 薪资项目管理
     * @return 结果
     */
    @Override
    public int updateCompensationSalaryProjectManagement(CompensationSalaryProjectManagement compensationSalaryProjectManagement)
    {
        return compensationSalaryProjectManagementMapper.updateCompensationSalaryProjectManagement(compensationSalaryProjectManagement);
    }

    /**
     * 批量删除薪资项目管理
     * 
     * @param ids 需要删除的薪资项目管理主键
     * @return 结果
     */
    @Override
    public int deleteCompensationSalaryProjectManagementByIds(Long[] ids)
    {
        return compensationSalaryProjectManagementMapper.deleteCompensationSalaryProjectManagementByIds(ids);
    }

    /**
     * 删除薪资项目管理信息
     * 
     * @param id 薪资项目管理主键
     * @return 结果
     */
    @Override
    public int deleteCompensationSalaryProjectManagementById(Long id)
    {
        return compensationSalaryProjectManagementMapper.deleteCompensationSalaryProjectManagementById(id);
    }
}
